package org.learn.controller;

import org.learn.bean.PersonBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PersonController {

    @Autowired
    PersonBean person;
    @RequestMapping("/")
    String home() {
        String str = person.getName()+"_"+person.getPassword()+"_"+person.getAddress();
        return str;
    }
}
